﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Config.Core
{
    /// <summary>
    /// Interface to be implemented by XML Instructions.
    /// </summary>
    public interface IInstruction
    {
        /// <summary>
        /// Gets or sets the XML comment node for the instruction.
        /// </summary>
        /// <value>The XML comment node.</value>
         XComment XComment {get; set;}

         /// <summary>
         /// Runs the instruction against the XML Document.
         /// </summary>
         /// <param name="xDoc">The XML document.</param>
        void Run(XDocument xDoc);
    }


}
